<div class="users view">
<h2><?php echo __('User'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Rol'); ?></dt>
		<dd>
			<?php echo $this->Html->link($user['Rol']['name'], array('controller' => 'rols', 'action' => 'view', $user['Rol']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('First Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['first_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Last Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['last_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mail'); ?></dt>
		<dd>
			<?php echo h($user['User']['mail']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Phone'); ?></dt>
		<dd>
			<?php echo h($user['User']['phone']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Rols'), array('controller' => 'rols', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Rol'), array('controller' => 'rols', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Professors'), array('controller' => 'professors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Professor'), array('controller' => 'professors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Schedules Options'), array('controller' => 'schedules_options', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Schedules Option'), array('controller' => 'schedules_options', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Professors'); ?></h3>
	<?php if (!empty($user['Professor'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Section Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['Professor'] as $professor): ?>
		<tr>
			<td><?php echo $professor['section_id']; ?></td>
			<td><?php echo $professor['user_id']; ?></td>
			<td><?php echo $professor['id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'professors', 'action' => 'view', $professor['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'professors', 'action' => 'edit', $professor['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'professors', 'action' => 'delete', $professor['id']), null, __('Are you sure you want to delete # %s?', $professor['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Professor'), array('controller' => 'professors', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Schedules Options'); ?></h3>
	<?php if (!empty($user['SchedulesOption'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Section Id'); ?></th>
		<th><?php echo __('Schedule'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($user['SchedulesOption'] as $schedulesOption): ?>
		<tr>
			<td><?php echo $schedulesOption['id']; ?></td>
			<td><?php echo $schedulesOption['section_id']; ?></td>
			<td><?php echo $schedulesOption['schedule']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'schedules_options', 'action' => 'view', $schedulesOption['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'schedules_options', 'action' => 'edit', $schedulesOption['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'schedules_options', 'action' => 'delete', $schedulesOption['id']), null, __('Are you sure you want to delete # %s?', $schedulesOption['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Schedules Option'), array('controller' => 'schedules_options', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
